cmake_minimum_required(VERSION 3.10)


set(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_FLAGS "-O3")



if (WIN32)
    message(STATUS "current system is windows32")
    set(LVGL_HOME D:/work/lvgl/lv_port_pc_eclipse)
    include_directories(${LVGL_HOME}/lvgl)
    include_directories(${LVGL_HOME}/lv_drivers)
    include_directories(./price)

elseif(IOS)
    message(STATUS "current system is ios")
elseif(LINUX)
    set(INGENIC_HOME /home/yang/ingenic)
    set(GCC_HOME ${INGENIC_HOME}/prebuilts/toolchains/mips-gcc720-glibc229/bin)

    SET(CMAKE_C_COMPILER ${GCC_HOME}/mips-linux-gnu-gcc)
    SET(CMAKE_CXX_COMPILER ${GCC_HOME}/mips-linux-gnu-g++)
    set(CMAKE_SYSROOT ${INGENIC_HOME}/out/product/x2670halleylvgl.v10_nand_5.10_wifi-eng/sysroot)

    set(BUILD_ROOT ${INGENIC_HOME}/out/product/x2670halleylvgl.v10_nand_5.10_wifi-eng/obj/buildroot-intermediate)


    set(LVGL_HOME ${BUILD_ROOT}/build/lvglbase-origin_release_v8.3)
    include_directories(${LVGL_HOME})
    include_directories(${BUILD_ROOT}/build/lvdrivers-origin_release_v8.2)
endif()
add_compile_definitions(LV_LVGL_H_INCLUDE_SIMPLE)
add_compile_definitions(LV_CONF_INCLUDE_SIMPLE)

project(iot-video)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH  ${PROJECT_SOURCE_DIR}/bin)

add_subdirectory(packages/apps/PriceTag)
